package com.gc.server.service;

import com.gc.server.entity.SaleRecordEntity;
import com.gc.server.vo.SaleRecordVo;
import com.yf.service.BaseService;
import java.io.InputStream;
import javax.servlet.http.HttpServletResponse;
import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.web.multipart.MultipartFile;

/**
 * 销量Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date ${datetime}
 */
public interface SaleRecordService extends BaseService<SaleRecordEntity> {

    /************自动生成**************/
    List<SaleRecordVo> findVo(SaleRecordVo vo);

        SaleRecordVo getVo(Long id);

     int updateVo(SaleRecordVo vo);

       int saveVo(SaleRecordVo vo);

    void downLoad(HttpServletResponse response, List<SaleRecordVo> list);

    void upload(InputStream file);

    /***********BACK***********/




    /***********API***********/

    Map sumByMonth(Date startDate, Date endDate, Long shopId,Long userId, Long headId,String level);

    Map sumByShop(Integer month,Long shopId,Long userId, Long headId,String level);

}
